package com.jason.kotlin.gank.ui.adapter

import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.module.LoadMoreModule
import com.chad.library.adapter.base.viewholder.BaseViewHolder
import com.jason.kotlin.gank.R
import com.jason.kotlin.gank.model.RollJokeBean

/**
 * @description: RollJokeAdapter
 *
 * @author ChenBaoyang
 * @date 4/25/21 21:04
 */
class RollJokeAdapter : BaseQuickAdapter<RollJokeBean, BaseViewHolder>(R.layout.roll_item_joke), LoadMoreModule {
    override fun convert(holder: BaseViewHolder, item: RollJokeBean) {
        item.run {
            holder.setText(R.id.tv_content, content)
            holder.setText(R.id.tv_time, updateTime)
        }
    }
}